Skip to content

Device Policy Controller Ops Mode#1858

Open
Tharow wants to merge 5 commits intoMuntashirAkon:masterfrom
Tharow-Services:DeviceAdmin
Open

Device Policy Controller Ops Mode#1858
Tharow wants to merge 5 commits intoMuntashirAkon:masterfrom
Tharow-Services:DeviceAdmin

Conversation

@Tharow
Copy link
Copy Markdown
Contributor

@Tharow Tharow commented Jan 17, 2026

Still Setting up the full Dev Environment for working of overlays / Platform integration
Thought I'd take a Swing at adding DPC support as it doesn't require a full AOSP Dev Environment to work on.

Known issues

  • Full Disclaimer and setup process info is needed.
  • Proper Interface for Removal / Transfer of DPC.
  • We Support Transfer in but not out of App Manager.
  • Warn User that removal of DPC will not remove it's policies, as it would be very difficult to track all the changes made with DPC and revert at removal time.

Fixed

  • Can't Toggle dev permissions and won't be able to, need to hide the toggle for them.
  • Fix Default policies of DPC as to give back the user full control.
  • Support Enabling and disabling of system app/ normal apps
  • Doesn't Display owner of device as App Manager.
  • No support interface to tell the user who restricted their access to something.

Signed-off-by: Theray Tharow <tharowt@tharow.net>
# Conflicts:
#	app/src/main/java/io/github/muntashirakon/AppManager/settings/Ops.java
#	app/src/main/res/values/strings.xml
Signed-off-by: Theray Tharow <tharowt@tharow.net>
Signed-off-by: Theray Tharow <tharowt@tharow.net>
Signed-off-by: Theray Tharow <tharowt@tharow.net>
@Tharow
Copy link
Copy Markdown
Contributor Author

Tharow commented Feb 1, 2026

@MuntashirAkon I need advisement for the UI for this feature, See Known Issues for more details.

Also how to trigger a Refresh/Mode Change of ModeOfOpsPreference Page from a receiver.

@Tharow Tharow marked this pull request as ready for review February 1, 2026 03:25
@MuntashirAkon MuntashirAkon reopened this Mar 1, 2026
@Tharow
Copy link
Copy Markdown
Contributor Author

Tharow commented May 3, 2026

@MuntashirAkon while you're online, give me an idea of what you'd like ui wise so i can finish the feature.

@MuntashirAkon
Copy link
Copy Markdown
Owner

I have no idea what you're trying to do here. At first prepare a document that indicates the features and APIs supported by DPC. From what I understand, DPC doesn't use the standard APIs. Instead, they have their own dumbed down version of the APIs. If that's the case, it's not possible to add support for DPC at all, because it will render the project unmaintainable from my part.

@Tharow
Copy link
Copy Markdown
Contributor Author

Tharow commented May 3, 2026

@MuntashirAkon, yes it uses a more dumbdown version, it also is a public api meaning that it hasn't changed and is unlikely to change, plus the general usability that this offers can't be understated. This allows the basic functionality of AM to be persisted. Which besides the platform version I am currently working on, and direct root, AM can't currently do.
Both of which require modified android in some capacity.

And the way dpc is implemented, means that its a seperate section at the start of any normal AM operation it checks for dpc so you can always version lock the feature later if google fucks it up, by adding a android version check in canModifypermission in the dpc compact.
I will implement custom errors so it's obvious when its dpc fucking up.

But yes give me a day and I'll do a writeup of the feature. And see if theres a way to use the normal apis with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants